<?php
include("../user/userlogincheck.php");
include("../include/config.inc.php");

$sql="select store_id from ".tableprefix."store where member_id='$userid'";
$result=$db->query($sql);
if($db->num_rows($result)==0){
	echo "<script>location.href='store.php';</script>";
	exit;
}
else{
	echo "<script>location.href='publish.php';</script>";
	exit;
}
?>